\usemodule[visual]

\setuppapersize[B5]
\setuplayout[width=fit,height=fit,backspace=10mm,cutspace=10mm,topspace=10mm,margin=10mm,header=10mm,footer=10mm]
\setuppagenumbering[location={header,right},style=\bfb]

\starttext

% % % ================== 各级标题样式的修改 ==================
% % % ================== 代码示例 - 5
% % chapter的编号和标题颜色=绿色
\setuphead[chapter][page=no,color=green]
% % 编号颜色=蓝色，文字颜色=橘色
\setuphead[section][page=no,numbercolor=blue,textcolor=orange]

\chapter[chapter1]{Story A}
\section{Part 1}
\fakewords{30}{40}
\section{Part 2}
\fakewords{10}{30}
\chapter[chapter2]{Story B}
\section{Part 1}
\fakewords{30}{50}
\section{Part 2}
\fakewords{20}{50}


\stoptext